package javase1.day08.demo02.day09.demo12;

public class DemoMain {
    public static void main(String[] args) {
//        Animal animal=new Animal();
//        Dog dog =new Dog();
        //不能直接创建抽象类
        Dog2ha dog2ha=new Dog2ha();
        dog2ha.eat();
        dog2ha.sleep();
        System.out.println("============");
        DogGloden dogGloden=new DogGloden();
        dogGloden.eat();
        dogGloden.sleep();
    }
}
